package com.bodu.system.service;

import com.bodu.core.common.CommonService;
import com.bodu.core.entity.result.Result;
import com.bodu.system.entity.request.CodeGenRequest;
import com.bodu.system.entity.vo.CodeGenVo;
import freemarker.template.TemplateException;

import java.io.IOException;

/**
 * @author Administrator
 */
public interface CodeGenService extends CommonService<CodeGenRequest, CodeGenVo> {

    /**
     * 生成代码
     *
     * @param codeGenRequest 代码生成实体
     * @return 返回生成是否成功
     * @throws TemplateException 模板错误
     * @throws IOException       IO错误
     */
    Result<Integer> createCodeGen(CodeGenRequest codeGenRequest) throws TemplateException, IOException;
}
